package elitech.vietnam.weatherfashion.dto;

import java.util.Date;

import com.google.gson.annotations.SerializedName;

import elitech.vietnam.weatherfashion.ultilities.Utilities;

public class FriendDTO {

	private int id;

	@SerializedName("friendid")
	private int friendId;

	@SerializedName("mem_id")
	private String friendUsername;

	@SerializedName("mem_name")
	private String friendName;
	@SerializedName("mem_pic")
	private String friendPic;
	@SerializedName("mem_profile")
	private String friendProfile;

	private int type;

	@SerializedName("create_date")
	private String createDateString;
	private Date createDate;

	public int getFriendId() {
		return friendId;
	}

	public void setFriendId(int friendId) {
		this.friendId = friendId;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getFriendUsername() {
		return friendUsername;
	}

	public void setFriendUsername(String friendUsername) {
		this.friendUsername = friendUsername;
	}

	public String getFriendName() {
		return friendName;
	}

	public void setFriendName(String friendName) {
		this.friendName = friendName;
	}

	public String getFriendPic() {
		return friendPic;
	}

	public void setFriendPic(String friendPic) {
		this.friendPic = friendPic;
	}

	public Date getCreateDate() {
		if (createDate == null)
			createDate = Utilities.parseDateFromStringFormat(createDateString,
					"yyyy-MM-dd hh:mm:ss");
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getFriendProfile() {
		return friendProfile;
	}

	public void setFriendProfile(String friendProfile) {
		this.friendProfile = friendProfile;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

}
